<template>
	<view class="pay">
		<div class="success-icon">
      <u-icon name="checkmark-circle-fill" color="#2aac34" size="160rpx"></u-icon>
      <span>支付成功</span>
    </div>
    <div class="btn-group">
      <div class="pay-button" @click="goOrder">查看订单</div>
      <div class="pay-button pay-button1" @click="goHome">返回首页</div>
    </div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
      goOrder(){
        uni.redirectTo({
          url: '/pages/order/order'
        })
      },
      goHome() {
        uni.switchTab({
          url: '/pages/index/index'
        })
      }
		}
	}
</script>

<style lang="scss">
.pay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .success-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 52px;
  }
  .btn-group {
    width: 100%;
    padding: 50px;
    box-sizing: border-box;
    .pay-button {
      margin-top: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 41px;
      font-size: 16px;
      color: #fff;
      background-color: #2aac34;
      border-radius: 5px;
    }
    .pay-button1 {
      background: #fff;
      color: #303133;
      border: 1px solid #ccc;
    }
  }
}
</style>
